package com.genia.toolbox.projects.sample_ws_trampo.war.business.dao.impl;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.genia.toolbox.persistence.criteria.Criteria;
import com.genia.toolbox.persistence.dao.AbstractDAO;
import com.genia.toolbox.persistence.exception.PersistenceException;
import com.genia.toolbox.projects.sample_ws_trampo.bean.model.BookClass;
import com.genia.toolbox.projects.sample_ws_trampo.war.business.dao.IBookClassDao;

public class BookClassDaoImpl extends AbstractDAO implements IBookClassDao {

	@Transactional(readOnly = true)
	public List<BookClass> getBooks() throws PersistenceException{

		Criteria<BookClass> criteria = getCriteria(BookClass.class);
		return simpleFind(criteria);
	}
}
